<%-------------------------------------------------------------------
 * 页面名称：innerPay_2.jsp
 * 功能描述：网上付款－确认付款信息
 * Action  : innerPay
 *
 *-------------------------------------------------------------------
--%>

<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="struts-html.tld" prefix="html"%>
<%@ taglib uri="struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="struts-logic.tld" prefix="logic"%>
<%@ taglib uri="struts-bean.tld" prefix="bean"%>
<%@ taglib prefix="ad" uri="agiledata"%>
<%
String path = request.getContextPath();
%>
<link href="<%=path%>/css/style.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/newstyle.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/common.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="<%=path%>/js/jquery-1.4.3.min.js"></script>
<script type="text/javascript" src="<%=path%>/js/PassGuardCtrl.js"></script>
<script type='text/javascript' src='<%=path%>/js/demo.js'></script>
<script type='text/javascript' src='<%=path%>/js/vnv/commonForManage.js'></script>
<script language="JavaScript" type="text/JavaScript">
function dosubmit(){
	var formObj = document.InnerPayForm;
	
	SubmitForm1();//获取随机密钥
	
	if(pgeditor.pwdLength()==0){
	     alert("支付密码不能为空");
		 _$("_ocx_password").focus();
		 return false;
	}
	
	var PwdResult=pgeditor.pwdResult();
	getObj('password').value=PwdResult;
	
	if(checkNecessaryInput(formObj)){
		if(formObj.assured.value=='false') {
			if (confirm("您的此笔交易款项将不经过担保，而直接进入对方账户，网站对此不承担任何责任。您确认支付吗？")) {
				formObj.submit();
			}
		}else{
			formObj.submit();
		}
	}
}
function doback(){
	document.InnerPayForm.step.value = "0";
	document.InnerPayForm.target = "_self";
	document.InnerPayForm.submit();
}

 window.onload = function(){	 
	   pgeditor.pgInitialize();//初始化控件
	}
</script>
<div id="main">
	<div class="content_right">
		<div class="content_right">
			<div class="titleinfo">
				网上付款
			</div>
			<div class="edit_pass">
				<table width="100%" border="0" align="center" cellpadding="5"
					cellspacing="0" class="blueborder">
					<html:form action="innerPay" method="post">
						<html:hidden property="step" />
						<html:hidden property="transId" />
						<tr>
							<td width="50%" align="right" height="35px;">
								付款子账户：
							</td>
							<td width="50%" class="fontgraydrop14" height="35px;">
								<bean:write name="subAccount" property="accountName" />
								<html:hidden property="debitSubAccountId" />
							</td>
						</tr>
						<tr>
							<td align="right" height="35px;">
								付款子账户当前余额：
							</td>
							<td class="fontgraydrop14" height="35px;">
								<span id="debitSubAccountBalanceSpan" class="orangefont14b">
									<ad:FormatPrase>
										<bean:write name="subAccount"
											property="accountBalance.balance" />
									</ad:FormatPrase> </span> 元
							</td>
						</tr>
						<logic:notEmpty name="creditAccount" property="name">
							<tr>
								<td align="right" height="35px;">
									收款方名称：
								</td>
								<td class="fontgraydrop14" height="35px;">
									<bean:write name="creditAccount" property="name" />
								</td>
							</tr>
						</logic:notEmpty>
						<tr>
							<td align="right" height="35px;">
								收款方Email/手机：
							</td>
							<td class="fontgraydrop14" height="35px;">
								<html:hidden property="credit" write="true" />
							</td>
						</tr>
						<tr>
							<td align="right" height="35px;">
								付款金额：
							</td>
							<td class="fontgraydrop14" height="35px;">
								<logic:present parameter="amount">
									<span id="debitSubAccountBalanceSpan" class="orangefont14b">
										<bean:parameter id="amount" name="amount" /> </span>
								</logic:present>
								<span id="debitSubAccountBalanceSpan" class="orangefont14b">
									<ad:FormatPrase>
										<bean:write name="amount" />
									</ad:FormatPrase> </span>元
								<html:hidden property="amount" />
							</td>
						</tr>
						<tr>
							<td align="right" height="35px;">
								手续费用：
							</td>
							<td class="fontgraydrop14" height="35px;">
								<logic:present parameter="fee">
									<span id="debitSubAccountBalanceSpan" class="orangefont14b">
										<bean:parameter id="fee" name="fee" /> </span>
								</logic:present>
								<span id="debitSubAccountBalanceSpan" class="orangefont14b">
									<ad:FormatPrase>
										<bean:write name="fee" />
									</ad:FormatPrase> </span>元
								<input type="hidden" name="fee" value="<bean:write name="fee"/>" />
							</td>
						</tr>
						<tr>
							<td align="right" height="35px;">
								交易模式：
							</td>
							<td class="fontgraydrop14" height="35px;">
								<logic:present parameter="assured">
									<bean:parameter id="assured" name="assured" />
								</logic:present>
								<logic:equal name="assured" value="true">担保交易</logic:equal>
								<logic:equal name="assured" value="false">非担保交易</logic:equal>
								<html:hidden property="assured" />
							</td>
						</tr>
						<tr>
							<td align="right" height="35px;">
								商品信息：
							</td>
							<td class="fontgraydrop14" height="35px;">
								<html:hidden property="commodity" write="true" />
							</td>
						</tr>
						<tr>
							<td align="right" height="35px;">
								资金用途：
							</td>
							<td class="fontgraydrop14" height="35px;">
								<html:hidden property="purpose" write="true" />
							</td>
						</tr>
						<tr>
							<td align="right" height="35px;">
								备注：
							</td>
							<td class="fontgraydrop14">
								<html:hidden property="remark" write="true" />
							</td>
						</tr>
						<%-- <logic:equal name="requiredPassword" value="true"> --%>
							<tr>
								<td align="right" height="35px;">
									<span class="orang12b">*</span>请输入支付密码：
								</td>
								<td class="fontgraydrop14" height="35px;">
									<script type="text/javascript">pgeditor.generate()</script>
								<input name="password" type="hidden" />
								</td>
							</tr>
						<%-- </logic:equal> --%>
						<tr>
							<td colspan="2" align="right">
								&nbsp;
							</td>
						</tr>
					</html:form>
				</table>
				<table width="100%" height="55" border="0" cellpadding="0"
					cellspacing="0">
					<tr>
						<td align="center">
							<font color="#FF0000"><html:errors /> </font>
						</td>
					</tr>
					<tr>
						<td align="center">
							<logic:notPresent parameter="transId">
								<input type="button" name="previous" value="上一步"
									class="button_style"
									onclick="location.href='<%=path%>/route.do?modual=pay$innerPay';" />
							</logic:notPresent>
							<logic:present parameter="transId">
								<logic:equal parameter="transId" value="">
									<input type="button" name="previous" value="上一步"
										class="button_style"
										onclick="location.href='<%=path%>/route.do?modual=pay$innerPay';" />
								</logic:equal>
							</logic:present>
							<input name="next" type="button" class="button_style"
								onclick="dosubmit();" value="确 定" />
						</td>
					</tr>
					<tr>
						<td colspan="2" align="right">
						<table width="100%" border="0" align="center" cellpadding="7"
										cellspacing="1" bgcolor="#f9e277" style="margin:10px 0;">
										<tr>
											<td bgcolor="#fffdf5">
												<table width="100%" border="0" cellpadding="3"
													cellspacing="0">
													<tr>
														<td width="3%" height="25" valign="top"
															style="border-bottom:1px solid #ccc;"></td>
														<td width="97%" align="left" class="red12b"
															style="border-bottom:1px solid #ccc;">
															特别提醒
														</td>
													</tr>
											<tr>
												<td valign="top">
													&nbsp;
												</td>
												<td align="left" class="font_gray">
													<span class="lan">请确认您的付款信息，正确请输入支付密码，并点击
														确定付款，需要修改请返回上一步！</span>
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</div>
		</div>
	</div>
</div>
<div style="clear:both;"></div>
